package cn.ljy.authority.web.controller.backstage.log;


import cn.ljy.authority.model.SysUserLoginLog;
import cn.ljy.authority.model.query.SysUserLoginLogQuery;
import cn.ljy.authority.service.SysRoleService;
import cn.ljy.authority.web.controller.backstage.BaseBackstageController;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Api(tags = "后台管理用户登录日志管理模块")
@RestController
@RequestMapping(value = "/backstage/log/user/login")
public class SysUserLoginLogController extends BaseBackstageController<SysUserLoginLog, SysUserLoginLogQuery,String> {

    @Autowired
    private SysRoleService baseService;

    @Override
    public String getAuthorityPrefix() {
        return "sys:user:log"; // 定义模块权限前缀
    }


    //    @PreAuthorize("hasAuthority('sys:user:log:query')")
//    @GetMapping("/all")
//    @Override
//    public ResponseData query(SysUserLoginLogQuery sysUserLoginLogQuery){
//        return super.query(sysUserLoginLogQuery);
//    }
//
//
//    @PreAuthorize("hasAuthority('sys:user:log:query')")
//    @Override
//    public ResponseData query(Integer page, Integer pageSize, SysUserLoginLogQuery sysUserLoginLogQuery){
//        return super.query(page,pageSize,sysUserLoginLogQuery);
//    }
//
//
//    @PreAuthorize("hasAuthority('sys:user:log:del')")
//    @Override
//    public ResponseData deletes(@NotEmpty(message="请选择要移除的记录")String[] ids){
//        return super.deletes(ids);
//    }


    //=========================扩展部分=============================================//

}
